package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @program:
 * @author: 陈思璇
 * @date 2023/2/19
 **/
public interface ShoppingCartMapper {


    //查询购物车
    List<ShoppingCart> list(ShoppingCart shoppingCart);
   //根据id修改购物车
    @Update("update shopping_cart set number=#{number} where id = #{id}")
    void updateNumberById(ShoppingCart shoppingCart);
}
